package com.example.demo.mongodao;

import com.example.demo.model.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by guofs on 2017/6/28.
 */
@Repository
public interface UserRepository extends MongoRepository<User, String> {
    User findByUsername(final String username);
}